package com.rst.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@Entity
@Table(name="t_weekdays")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class Weekday {
	
	public static final int ACTIVE = 1;
	public static final int INACTIVE = 0;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name="f_weekday_id")
	private Long weekdayId;	
	
	
	@Column(name="f_status")
	private Integer status;
	
	@Column(name="f_section_id")
	private Long sectionId;

	@Column(name="f_no_of_days")
	private Integer noOfDays;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="f_section_id", nullable=false, insertable=false, updatable=false)
	private Section section;

	public Long getWeekdayId() {
		return weekdayId;
	}

	public void setWeekdayId(Long weekdayId) {
		this.weekdayId = weekdayId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getSectionId() {
		return sectionId;
	}

	public void setSectionId(Long sectionId) {
		this.sectionId = sectionId;
	}

	public Integer getNoOfDays() {
		return noOfDays;
	}

	public void setNoOfDays(Integer noOfDays) {
		this.noOfDays = noOfDays;
	}

	public Section getSection() {
		return section;
	}

	public void setSection(Section section) {
		this.section = section;
	}

	

	

}
